#ifndef  __GLOBALMETHOD_H__
#define  __GLOBALMETHOD_H__

void Hex2Str(INT8U* Num,INT8U *Str,INT8U Lth);
INT16U Crc16(INT8U *ptr, INT8U len);
INT8U Lrc(INT8U *Checkdata, INT8U len);
void nand_calculate_ecc (const INT8U *dat, INT8U *ecc_code);
INT16U nand_correct_data (INT8U *dat, INT8U *read_ecc, INT8U *calc_ecc);
#endif